package com.xianyun.site.iblog.common.database.domainobject;

import com.xianyun.common.core.annotation.Excel;
import lombok.Builder;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 日志对象 rocket_mq_transaction_log
 *
 * @author ruoyi
 * @date 2020-10-20
 */
@Data
@Builder
public class RocketMqTransactionLog
{
    private static final long serialVersionUID = 1L;
    /** 主键 */
    private Long id;

    /** 事务ID */
    @Excel(name = "事务ID")
    private String transactionId;

    /** 日志 */
    @Excel(name = "日志")
    private String log;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("transactionId", getTransactionId())
                .append("log", getLog())
                .toString();
    }
}